package com.fxp.project.jiuselu.web.models.shareprofit.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 分润记录表
 * </p>
 *
 * @author M_
 * @since 2021-12-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class JslShareProfitRecordVo implements Serializable {


    /**
     * 主键
     */
    @TableId(value = "record_id", type = IdType.AUTO)
    private Long recordId;

    /**
     * 订单号
     */
    @TableField("order_id")
    private String orderId;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 分润金额
     */
    @TableField("profit_money")
    private BigDecimal profitMoney;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;


    public JslShareProfitRecordVo() {

    }

    public JslShareProfitRecordVo(String orderId, BigDecimal profitMoney, Long userId) {
        this.orderId = orderId;
        this.profitMoney = profitMoney;
        this.userId = userId;
    }


}
